# -*- coding: utf-8 -*-
from typing import Optional, List
from pydantic import BaseModel, Field, EmailStr
from datetime import datetime,timedelta,timezone


class CVImg(BaseModel):
    dev_id:int=Field(default=-1,description='所属机台的id')
    station_id:int=Field(default=-1,description='所属站点的id')
    # created_at:datetime(tzinfo=datetime.titimedelta(hours=+5), 'EST')=Field(default=datetime.now(),description='图片创建时间')
    created_at:datetime=Field(default=datetime.now,description='图片创建时间')
    name:str=Field(description='图片的路径,相对路径')
    content_temperature:Optional[float] = None
    temperature_set:Optional[float] = None
    content_humidity:Optional[float] = None
    humidity_set:Optional[float] = None
    content_status:str=Field(description='机台的状态')

